<?php

include "../service/imageService.php";

$img1 = $_FILES['img1'];
$imgId1 = $_POST["hdnBannerId1"];
$img2 = $_FILES['img2'];
$imgId2 = $_POST["hdnBannerId2"];
$img3 = $_FILES['img3'];
$imgId3 = $_POST["hdnBannerId3"];
$img4 = $_FILES['img4'];
$imgId4 = $_POST["hdnBannerId4"];
$img5 = $_FILES['img5'];
$imgId5 = $_POST["hdnBannerId5"];
$img6 = $_FILES['img6'];
$imgId6 = $_POST["hdnBannerId6"];

uploadBanner($img1, '1', $imgId1);
uploadBanner($img2, '2', $imgId2);
uploadBanner($img3, '3', $imgId3);
uploadBanner($img4, '4', $imgId4);
uploadBanner($img5, '5', $imgId5);
uploadBanner($img6, '6', $imgId6);

Header("Location: ../admin/banner.php?msg=ok");
?>